<?php
/**
 * 视频分类
 */
namespace Home\Controller;
use Think\Controller;
class VideoclassifyController extends InitController {
	
	//异步视频分类加载
	public function ajax_video_classify(){
		if(!IS_AJAX){
			return false;
		}
		
		$result= D('VideoClassify')->do_list();
		
		if(!empty($result)){
			$this->ajaxReturn(array('data'=>array('category'=>$result),'status'=>'1'));	
		}else{
			$this->ajaxReturn(array('data'=>'没有视频素材','status'=>'0'));			
		}
		
	}
	
}
